﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using Bon_It.Model;

namespace Bon.It.Server.Interfaces
{
   
    /// <summary>
    /// An interface for the <see cref="Warengruppe"/>.
    /// </summary>
    [ServiceContract]
    public interface IComoditiyGroup
    {
        /// <summary>
        /// Get all <see cref="Warengruppe"/> from the database
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        Warengruppe[] GetComodityGroups();

        /// <summary>
        /// Store the <see cref="Warengruppe"/>.
        /// </summary>
        /// <param name="item"></param>
        [OperationContract]
        void StoreComoditiyGroup(Warengruppe item);

        /// <summary>
        /// Delete the <see cref="Warengruppe"/>.
        /// </summary>
        /// <param name="item"></param>
        [OperationContract]
        void DeleteComodityGroup(Warengruppe item);
    }
}
